const checkMyOrder = require('./checkMyOrder/index');
const checkOrder = require('./checkOrder/index');
const confirmOrder = require('./confirmOrder/index');
const setOrder = require('./setOrder/index');
const getOrder = require("./getOrder/index");
const checkHistory = require("./checkHistory/index");

exports.main = async (event, context) => {
  switch (event.type) {
    case 'checkMyOrder':
      return await checkMyOrder.main(event, context);
    case 'checkOrder':
      return await checkOrder.main(event, context);
    case 'confirmOrder':
      return await confirmOrder.main(event, context);
    case 'setOrder':
      return await setOrder.main(event, context);
    case 'getOrder':
      return await getOrder.main(event, context);
      case 'checkHistory':
      return await checkHistory.main(event, context);
  }
};
